{%extends "base.html" %}

{%block main%}
	{%if not request.session.user%}
		<form action="{{APP_ROOT}}reg/?next={{NEXT}}" method="post" name="reg_form">
		{{ form.as_ul }}
		<br />
		<li>验证码:<input name="verifyCode" id="verifyCode" type="text" value="" maxlength="4" size="4" />
		<img onmouseover="this.style.cursor='hand';" title="看不清楚,换一张" id='codeImg' onclick="reload_vcode(this);" src="{{APP_ROOT}}verifyCode/" /></li>
		<br />
		<input type="button" value="提交" onclick="submits('reg_form');" />
		</form>
		<script type="text/javascript">
		//$("form[name='reg_form']").checkForm();
		</script>
	{%else%}
		您已经登陆了,<a href="{{APP_ROOT}}logout/">退出就点这里!</a>
	{%endif%}
{%endblock%}
